from selenium.webdriver.firefox.options import Options
from selenium import webdriver
url = 'https://www.baidu.com'
options = Options()
options.add_argument('-headless')
browser = webdriver.Firefox(options=options)
print('over')

# from selenium import webdriver
# from selenium.webdriver import FirefoxOptions
# opts = FirefoxOptions()
# opts.add_argument('–headless')
# browser = webdriver.Firefox(options=opts)
# browser.get('http://example.com')
# print('over')
